#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int n;
	for (n = 1; n <= 10; n++) {
		if (n % 3 == 0) continue;
		printf("%d", n);
	}
	return 0;
}